package com.haier.common;

import java.io.Serializable;
import java.util.Date;

public class AbstractBean implements Serializable{

	private static final long serialVersionUID = -5178868918612067319L;
	
	protected static final String DEFAULT_VALUE_ID = "-1";
	
	private int code = 0 ;
	
	private String[] message = new String[]{"success",
			"Internal error",
			"Path variable is null"};
	
	
	public AbstractBean(){
		
	}
	

	/**
	 * 记录创建时间
	 */
	private Date gmtCreate;
	/**
	 * 记录修改时间
	 */
	private Date gmtModified;
	/**
	 * 记录创建者ID
	 */
	private String createByID;
	/**
	 * 记录创建者
	 */
	private String createBy;
	/**
	 * 最后修改者ID
	 */
	private String lastModifiedByID;
	/**
	 * 最后修改者
	 */
	private String lastModifiedBy;
	
	public Date getGmtCreate() {
		return gmtCreate;
	}
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}
	public Date getGmtModified() {
		return gmtModified;
	}
	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public String getLastModifiedBy() {
		return lastModifiedBy;
	}
	public void setLastModifiedBy(String lastModifiedBy) {
		this.lastModifiedBy = lastModifiedBy;
	}
	public String getReturnMsg() {
		return message[code];
	}
	public void setReturnCode(int code) {
		this.code = code ;
	}
	public int getReturnCode() {
		return code;
	}
	public String getCreateByID() {
		return createByID;
	}
	public void setCreateByID(String createByID) {
		this.createByID = createByID;
	}
	public String getLastModifiedByID() {
		return lastModifiedByID;
	}
	public void setLastModifiedByID(String lastModifiedByID) {
		this.lastModifiedByID = lastModifiedByID;
	}
	
	
}
